library CanisterLoad initializer init 


	private function Trig_Canister_Load_End_Conditions takes nothing returns boolean
		if ( not ( GetSpellAbilityId() == 'A03P' ) ) then
			return false
		endif
		return true
	endfunction

	private function Trig_Canister_Load_End_Actions takes nothing returns nothing  
		local unit u = GetTriggerUnit()
		call IssueImmediateOrderBJ( u, "holdposition" )
		set u = null
	endfunction

	//===========================================================================
	private function init takes nothing returns nothing
		local trigger t
		set t = CreateTrigger(  )
		call TriggerRegisterAnyUnitEventBJ( t,  EVENT_PLAYER_UNIT_SPELL_EFFECT )
		call TriggerAddCondition( t, Condition( function Trig_Canister_Load_End_Conditions ) )
		call TriggerAddAction( t, function Trig_Canister_Load_End_Actions )
	endfunction

endlibrary